package com.jt.service.impl;

import com.jt.dao.AdminMapper;
import com.jt.entity.Admin;
import com.jt.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AdminServiceImpl implements AdminService {

    @Autowired
    private AdminMapper userMapper;

    @Override
    public Admin login(String name, String password) {
        return userMapper.login(name,password);
    }

    @Override
    public Admin queryByid(Integer id) {
        return userMapper.queryByid(id);
    }

}
